package com.gilight.base.dao;

import com.gilight.base.model.SysZzjg;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface SysZzjgMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysZzjg record);

    int insertSelective(SysZzjg record);

    SysZzjg selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysZzjg record);

    int updateByPrimaryKey(SysZzjg record);

    List<Map<String, Object>> findMapList(Map<String, Object> map) ;
    List<Map<String, Object>> findMapListByCTE(Map<String, Object> map) ;

    List<Map<String, Object>> getZzjgType() ;
    List<Map<String, Object>> getZzjgBrand() ;

    int countList(Map<String, Object> map);

    List<SysZzjg> findByParentId(@Param(value = "parentId") Long parentId, @Param(value = "type") String type);

    List<Long> findIdsByParentId(@Param(value = "parentId") Long parentId);

    List<Map<String, Object>> getZzjgList();

    List<Map<String, Object>> getZzjgData(Map<String, Object> map);
}